Optimal. Leaf size=220 \[ \frac {23 \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {a}}\right )}{4 a^{3/2} d}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {\cot ^2(c+d x)}{3 d (a+i a \tan (c+d x))^{3/2}}+\frac {17 \cot ^2(c+d x)}{6 a d \sqrt {a+i a \tan (c+d x)}}+\frac {21 i \cot (c+d x) \sqrt {a+i a \tan (c+d x)}}{4 a^2 d}-\frac {11 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 a^2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.48, antiderivative size = 220, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 9, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.346, Rules used = {3640, 3677,
3679, 3681, 3561, 212, 3680, 65, 214} \begin {gather*} \frac {23 \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {a}}\right )}{4 a^{3/2} d}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{2 \sqrt {2} a^{3/2} d}-\frac {11 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 a^2 d}+\frac {21 i \cot (c+d x) \sqrt {a+i a \tan (c+d x)}}{4 a^2 d}+\frac {17 \cot ^2(c+d x)}{6 a d \sqrt {a+i a \tan (c+d x)}}+\frac {\cot ^2(c+d x)}{3 d (a+i a \tan (c+d x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 212
Rule 214
Rule 3561
Rule 3640
Rule 3677
Rule 3679
Rule 3680
Rule 3681
Rubi steps
\begin {align*} \int \frac {\cot ^3(c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx &=\frac {\cot ^2(c+d x)}{3 d (a+i a \tan (c+d x))^{3/2}}+\frac {\int \frac {\cot ^3(c+d x) \left (5 a-\frac {7}{2} i a \tan (c+d x)\right )}{\sqrt {a+i a \tan (c+d x)}} \, dx}{3 a^2}\\ &=\frac {\cot ^2(c+d x)}{3 d (a+i a \tan (c+d x))^{3/2}}+\frac {17 \cot ^2(c+d x)}{6 a d \sqrt {a+i a \tan (c+d x)}}+\frac {\int \cot ^3(c+d x) \sqrt {a+i a \tan (c+d x)} \left (22 a^2-\frac {85}{4} i a^2 \tan (c+d x)\right ) \, dx}{3 a^4}\\ &=\frac {\cot ^2(c+d x)}{3 d (a+i a \tan (c+d x))^{3/2}}+\frac {17 \cot ^2(c+d x)}{6 a d \sqrt {a+i a \tan (c+d x)}}-\frac {11 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 a^2 d}+\frac {\int \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)} \left (-\frac {63 i a^3}{2}-33 a^3 \tan (c+d x)\right ) \, dx}{6 a^5}\\ &=\frac {\cot ^2(c+d x)}{3 d (a+i a \tan (c+d x))^{3/2}}+\frac {17 \cot ^2(c+d x)}{6 a d \sqrt {a+i a \tan (c+d x)}}+\frac {21 i \cot (c+d x) \sqrt {a+i a \tan (c+d x)}}{4 a^2 d}-\frac {11 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 a^2 d}+\frac {\int \cot (c+d x) \sqrt {a+i a \tan (c+d x)} \left (-\frac {69 a^4}{4}+\frac {63}{4} i a^4 \tan (c+d x)\right ) \, dx}{6 a^6}\\ &=\frac {\cot ^2(c+d x)}{3 d (a+i a \tan (c+d x))^{3/2}}+\frac {17 \cot ^2(c+d x)}{6 a d \sqrt {a+i a \tan (c+d x)}}+\frac {21 i \cot (c+d x) \sqrt {a+i a \tan (c+d x)}}{4 a^2 d}-\frac {11 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 a^2 d}-\frac {23 \int \cot (c+d x) (a-i a \tan (c+d x)) \sqrt {a+i a \tan (c+d x)} \, dx}{8 a^3}-\frac {i \int \sqrt {a+i a \tan (c+d x)} \, dx}{4 a^2}\\ &=\frac {\cot ^2(c+d x)}{3 d (a+i a \tan (c+d x))^{3/2}}+\frac {17 \cot ^2(c+d x)}{6 a d \sqrt {a+i a \tan (c+d x)}}+\frac {21 i \cot (c+d x) \sqrt {a+i a \tan (c+d x)}}{4 a^2 d}-\frac {11 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 a^2 d}-\frac {\text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\sqrt {a+i a \tan (c+d x)}\right )}{2 a d}-\frac {23 \text {Subst}\left (\int \frac {1}{x \sqrt {a+i a x}} \, dx,x,\tan (c+d x)\right )}{8 a d}\\ &=-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {\cot ^2(c+d x)}{3 d (a+i a \tan (c+d x))^{3/2}}+\frac {17 \cot ^2(c+d x)}{6 a d \sqrt {a+i a \tan (c+d x)}}+\frac {21 i \cot (c+d x) \sqrt {a+i a \tan (c+d x)}}{4 a^2 d}-\frac {11 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 a^2 d}+\frac {(23 i) \text {Subst}\left (\int \frac {1}{i-\frac {i x^2}{a}} \, dx,x,\sqrt {a+i a \tan (c+d x)}\right )}{4 a^2 d}\\ &=\frac {23 \tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {a}}\right )}{4 a^{3/2} d}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+i a \tan (c+d x)}}{\sqrt {2} \sqrt {a}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {\cot ^2(c+d x)}{3 d (a+i a \tan (c+d x))^{3/2}}+\frac {17 \cot ^2(c+d x)}{6 a d \sqrt {a+i a \tan (c+d x)}}+\frac {21 i \cot (c+d x) \sqrt {a+i a \tan (c+d x)}}{4 a^2 d}-\frac {11 \cot ^2(c+d x) \sqrt {a+i a \tan (c+d x)}}{3 a^2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 4.33, size = 214, normalized size = 0.97 \begin {gather*} \frac {\sec ^{\frac {3}{2}}(c+d x) \left (\sqrt {2} \left (\frac {e^{i (c+d x)}}{1+e^{2 i (c+d x)}}\right )^{3/2} \left (1+e^{2 i (c+d x)}\right )^{3/2} \left (-2 \sinh ^{-1}\left (e^{i (c+d x)}\right )+23 \sqrt {2} \tanh ^{-1}\left (\frac {\sqrt {2} e^{i (c+d x)}}{\sqrt {1+e^{2 i (c+d x)}}}\right )\right )-\frac {1}{3} \csc ^2(c+d x) \sqrt {\sec (c+d x)} (25+6 \cos (2 (c+d x))-19 \cos (4 (c+d x))+27 i \sin (2 (c+d x))-18 i \sin (4 (c+d x)))\right )}{8 d (a+i a \tan (c+d x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 1396 vs. \(2 (178 ) = 356\).
time = 1.01, size = 1397, normalized size = 6.35
method | result | size |
default | \(\text {Expression too large to display}\) | \(1397\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.55, size = 221, normalized size = 1.00 \begin {gather*} -\frac {a^{2} {\left (\frac {2 \, {\left (63 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{3} - 107 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{2} a + 34 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )} a^{2} + 4 \, a^{3}\right )}}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {7}{2}} a^{3} - 2 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {5}{2}} a^{4} + {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {3}{2}} a^{5}} - \frac {3 \, \sqrt {2} \log \left (-\frac {\sqrt {2} \sqrt {a} - \sqrt {i \, a \tan \left (d x + c\right ) + a}}{\sqrt {2} \sqrt {a} + \sqrt {i \, a \tan \left (d x + c\right ) + a}}\right )}{a^{\frac {7}{2}}} + \frac {69 \, \log \left (\frac {\sqrt {i \, a \tan \left (d x + c\right ) + a} - \sqrt {a}}{\sqrt {i \, a \tan \left (d x + c\right ) + a} + \sqrt {a}}\right )}{a^{\frac {7}{2}}}\right )}}{24 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 678 vs. \(2 (171) = 342\).
time = 0.39, size = 678, normalized size = 3.08 \begin {gather*} -\frac {12 \, \sqrt {\frac {1}{2}} {\left (a^{2} d e^{\left (7 i \, d x + 7 i \, c\right )} - 2 \, a^{2} d e^{\left (5 i \, d x + 5 i \, c\right )} + a^{2} d e^{\left (3 i \, d x + 3 i \, c\right )}\right )} \sqrt {\frac {1}{a^{3} d^{2}}} \log \left (4 \, {\left (\sqrt {2} \sqrt {\frac {1}{2}} {\left (a^{2} d e^{\left (2 i \, d x + 2 i \, c\right )} + a^{2} d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{3} d^{2}}} + a e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}\right ) - 12 \, \sqrt {\frac {1}{2}} {\left (a^{2} d e^{\left (7 i \, d x + 7 i \, c\right )} - 2 \, a^{2} d e^{\left (5 i \, d x + 5 i \, c\right )} + a^{2} d e^{\left (3 i \, d x + 3 i \, c\right )}\right )} \sqrt {\frac {1}{a^{3} d^{2}}} \log \left (-4 \, {\left (\sqrt {2} \sqrt {\frac {1}{2}} {\left (a^{2} d e^{\left (2 i \, d x + 2 i \, c\right )} + a^{2} d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{3} d^{2}}} - a e^{\left (i \, d x + i \, c\right )}\right )} e^{\left (-i \, d x - i \, c\right )}\right ) - 69 \, {\left (a^{2} d e^{\left (7 i \, d x + 7 i \, c\right )} - 2 \, a^{2} d e^{\left (5 i \, d x + 5 i \, c\right )} + a^{2} d e^{\left (3 i \, d x + 3 i \, c\right )}\right )} \sqrt {\frac {1}{a^{3} d^{2}}} \log \left (16 \, {\left (3 \, a^{2} e^{\left (2 i \, d x + 2 i \, c\right )} + 2 \, \sqrt {2} {\left (a^{3} d e^{\left (3 i \, d x + 3 i \, c\right )} + a^{3} d e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{3} d^{2}}} + a^{2}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}\right ) + 69 \, {\left (a^{2} d e^{\left (7 i \, d x + 7 i \, c\right )} - 2 \, a^{2} d e^{\left (5 i \, d x + 5 i \, c\right )} + a^{2} d e^{\left (3 i \, d x + 3 i \, c\right )}\right )} \sqrt {\frac {1}{a^{3} d^{2}}} \log \left (16 \, {\left (3 \, a^{2} e^{\left (2 i \, d x + 2 i \, c\right )} - 2 \, \sqrt {2} {\left (a^{3} d e^{\left (3 i \, d x + 3 i \, c\right )} + a^{3} d e^{\left (i \, d x + i \, c\right )}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{3} d^{2}}} + a^{2}\right )} e^{\left (-2 i \, d x - 2 i \, c\right )}\right ) + 4 \, \sqrt {2} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} {\left (37 \, e^{\left (8 i \, d x + 8 i \, c\right )} - 33 \, e^{\left (6 i \, d x + 6 i \, c\right )} - 50 \, e^{\left (4 i \, d x + 4 i \, c\right )} + 21 \, e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right )}}{48 \, {\left (a^{2} d e^{\left (7 i \, d x + 7 i \, c\right )} - 2 \, a^{2} d e^{\left (5 i \, d x + 5 i \, c\right )} + a^{2} d e^{\left (3 i \, d x + 3 i \, c\right )}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\cot ^{3}{\left (c + d x \right )}}{\left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.94, size = 186, normalized size = 0.85 \begin {gather*} -\frac {\frac {a^2}{3}+\frac {21\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^3}{4\,a}+\frac {17\,a\,\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}{6}-\frac {107\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^2}{12}}{d\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{7/2}-2\,a\,d\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{5/2}+a^2\,d\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{3/2}}+\frac {23\,\mathrm {atanh}\left (\frac {a\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}{\sqrt {a^3}}\right )}{4\,d\,\sqrt {a^3}}-\frac {\sqrt {2}\,\mathrm {atanh}\left (\frac {\sqrt {2}\,a\,\sqrt {a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}}}{2\,\sqrt {a^3}}\right )}{4\,d\,\sqrt {a^3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________